import sys
if __name__ == "__main__":
	f = file(sys.argv[1],"r")
	line = f.readline()
	while len(line) > 0:
		li = line[:-1].strip().split("#")[0].strip()
		if len(li) > 0:
			sp = li.split(" ")
			print "\t".join( [ str(int(x)) for x in sp  ] )
		line = f.readline()
	f.close()

